package cn.hp.cms.service;

import cn.hp.cms.entity.User;
import cn.hp.cms.utils.PageData;
import cn.hp.cms.utils.ResultData;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    ResultData login(String userName, String password , String checkCode , HttpServletRequest req);

    List<User> getAllUsers();

    PageData getPageData(PageData pageData, User user);

    ResultData resetPassword(int id);

    ResultData delteUser(String[] ids);

    ResultData addUser(User user);

    ResultData updatePassword(String username, String password, String newPassword);

    ResultData updateImg(String user, String imgPath);

    ResultData selectUserImg(String userName);
}
